//
// Case.cpp for nibbler in /home/lefebv_w//workspace/cpp/nibbler/v1
// 
// Made by damien lefebvre
// Login   <lefebv_w@epitech.net>
// 
// Started on  Mon Mar 11 18:21:55 2013 damien lefebvre
// Last update Sun Mar 24 17:58:04 2013 damien lefebvre
//

#include	"Case.hh"

Case::Case(unsigned int x, unsigned int y, IGraphicLibrary::e_TypeOfCase type, IGraphicLibrary::e_ListOfImage image)
  : m_x(x), m_y(y), m_type(type), m_img(image)
{}

Case::Case(Case const & copy)
{
  Case(copy.m_x, copy.m_y, copy.m_type, copy.m_img);
}

Case::~Case(void)
{}

Case &		Case::operator=(Case const & copy)
{
  if (&copy != this)
    {
      m_x = copy.m_x;
      m_y = copy.m_y;
      m_type = copy.m_type;
      m_img = copy.m_img;
    }
  return (*this);
}

void		Case::draw(IGraphicLibrary & graph) const
{
  graph.draw(m_x, m_y, m_img);
}


IGraphicLibrary::e_TypeOfCase	Case::getType(void) const
{
  return (m_type);
}
